#include "dao.h"
#include "utils.h"

void insert_student() {
    printf("请输入用户名：");
    scanf("%s", student[student_current_count].name);
    printf("请输入性别：");
    student[student_current_count].gender = get_sex();
    printf("请输入编号：");
    scanf("%s", student[student_current_count].id);
    printf("请输入密码：");
    get_pwd(student[student_current_count].passwd, true, MAX_PWD_LENGTH);
    printf("请输入语文分数：");
    scanf("%f", &student[student_current_count].chinese);
    printf("请输入英语分数：");
    scanf("%f", &student[student_current_count].english);
    printf("请输入数学分数：");
    scanf("%f", &student[student_current_count].math);
    printf("请输入自然分数：");
    scanf("%f", &student[student_current_count].nature);

    student[student_current_count].birth = 0;
    student[student_current_count].exist = 0;

    student_current_count++;
}
void delete_student() {}
void select_student() {}
void update_student() {}